﻿@model Innova.Entites.RESERVA

@{
    ViewBag.Title = "Reserva";
    var PatrocinadorId = Html.Value("PatrocinadorId");
}

<script src="~/Scripts/jquery-1.10.2.js"></script>
<script src="~/Scripts/jquery-ui.js"></script>

@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend></legend>

        <div class="editor-field">
            @Html.Hidden("ServicioId")
        </div>

        <div class="editor-label">
            Cantidad de Niños:
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CantidadNiños)
            @Html.ValidationMessageFor(model => model.CantidadNiños)
        </div>

        Cantidad de Adultos:
        <div class="editor-field">
            @Html.EditorFor(model => model.CantidadAdultos)
            @Html.ValidationMessageFor(model => model.CantidadAdultos)
        </div>

        <div class="editor-label">
            @Html.Label("Fecha Llegada / Fecha Salida")
        </div>
        <div class="editor-field">
            Desde : @Html.TextBox("FechaLlegada", null, new { type = "date" }) Hasta : @Html.TextBox("FechaSalida", null, new { type = "date" })
        </div>


        <div class="editor-label">
            @Html.LabelFor(model => model.Tarifa)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Tarifa)
            @Html.ValidationMessageFor(model => model.Tarifa)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Dias)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Dias)
            @Html.ValidationMessageFor(model => model.Dias)
        </div>

        <p>
            <input type="submit" value="Reservar" />
        </p>
    </fieldset>
}

<p>
    <a href="@Url.Action("Index", "Servicio", new { IdPatro = PatrocinadorId })">
        <img src="@Url.Content("~/Content/images/arrow-back.png")" title="Cancelar" /></a>
</p>



@{
    var message = TempData["AlertMessage"] ?? string.Empty;
}

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")

    <script type="text/javascript">
        var message = '@message';
        if (message)
            alert(message).alert;

    </script>
}
